package com.example.yc23.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "maker")
public class Maker {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;//演员姓名
    private String sex;//性别
    private String birthPlace;//出生地、国际
    private String occupation;//职业
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;//生日
    private String pic1;//头像
    private String briefIntro;  //简介
    private Integer state;//显示状态1为正常

}
